const TOKEN_KEY = '__TOKEN-KEY';
const USERINFO_KEY = '__USERINFO-KEY';

// token
export function setToken_AUTH(token) {
	uni.setStorageSync(TOKEN_KEY, token);
}
export function getToken_AUTH() {
	return uni.getStorageSync(TOKEN_KEY);
}
export function removeToken_AUTH() {
	return uni.removeStorageSync(TOKEN_KEY)
}

// userInfo
export function setUserInfo_AUTH(userInfo) {
	uni.setStorageSync(USERINFO_KEY, userInfo);
}
export function getUserInfo_AUTH() {
	return uni.getStorageSync(USERINFO_KEY);
}
export function removeUserInfo_AUTH() {
	return uni.removeStorageSync(USERINFO_KEY)
}
